<script setup>
import MyData from '../../components/MyData.vue';
import {ref,reactive} from 'vue'

console.log('------------------->学生数据 <-------------------');

const headTitle = reactive([
    ["学号","姓名","性别"],
    ['stuno','stuname','sex']
]);

const data = reactive([
    { stuno: 1001, stuname: '张三丰0', sex: '男' },
    { stuno: 1002, stuname: '张三丰1', sex: '男' },
    { stuno: 1003, stuname: '张三丰2', sex: '男' },
    { stuno: 1004, stuname: '张三丰3', sex: '男' },
    { stuno: 1005, stuname: '张三丰4', sex: '男' },
    { stuno: 1006, stuname: '张三丰6', sex: '男' },
    { stuno: 1007, stuname: '张三丰7', sex: '男' },
    { stuno: 1008, stuname: '张三丰8', sex: '男' }
]);
</script>

<template>
  <MyData :title="headTitle" :data="data">员工列表</MyData>
</template>

<style>

</style>

<!-- .vue文件，是由三个部分组成的一个组件
template : 编写html
script   : 编写js
stype    :css -->
